<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<s:if test="employee==null || employee.employeeId == null">
	<s:set name="title" value="%{'添加员工'}" />
</s:if>
<s:else>
	<s:set name="title" value="%{'编辑员工'}" />
</s:else>

<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<head>
<link href="<s:url value='/css/main.css'/>" rel="stylesheet"
	type="text/css" />
<style>
td {
	white-space: nowrap;
}
</style>
<title><s:property value="#title" /></title>
<s:head />
</head>
<body>
	<div class="titleDiv">
		<s:text name="application.title" />
	</div>
	<h1>
		<s:property value="#title" />
	</h1>
	<s:actionerror />
	<s:actionmessage />
	<s:form action="employee_save" method="post">
		<s:textfield key="employee.firstName" size="40" />
		<s:textfield key="employee.lastName" size="40" />
		<s:textfield key="employee.age" size="20" />
		<s:select key="employee.department.departmentId" list="departments"
			listKey="departmentId" listValue="name" />
		<s:textfield key="employee.salary" size="20" />
		<s:hidden name="employee.employeeId" />
		<s:submit key="submit" />
	</s:form>

</body>
</html>